home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / ISDN_PPP.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  72 lines

  1. #ifndef _LINUX_ISDN_PPP_H
  2. #define _LINUX_ISDN_PPP_H
  3.  
  4. extern int isdn_ppp_dial_slave(char *);
  5. extern int isdn_ppp_hangup_slave(char *);
  6.  
  7. #define CALLTYPE_INCOMING 0x1
  8. #define CALLTYPE_OUTGOING 0x2
  9. #define CALLTYPE_CALLBACK 0x4
  10.  
  11. struct pppcallinfo
  12. {
  13.     int calltype;
  14.     unsigned char local_num[64];
  15.     unsigned char remote_num[64];
  16.     int charge_units;
  17. };
  18.  
  19. #define PPPIOCGCALLINFO _IOWR('t',128,struct pppcallinfo)
  20. #define PPPIOCBUNDLE   _IOW('t',129,int)
  21. #define PPPIOCGMPFLAGS _IOR('t',130,int)
  22. #define PPPIOCSMPFLAGS _IOW('t',131,int)
  23. #define PPPIOCSMPMTU   _IOW('t',132,int)
  24. #define PPPIOCSMPMRU   _IOW('t',133,int)
  25. #define PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long)
  26. #define PPPIOCSCOMPRESSOR _IOW('t',135,int)
  27.  
  28. #define PPP_MP          0x003d
  29. #define PPP_LINK_COMP   0x00fb
  30.  
  31. #define SC_MP_PROT       0x00000200
  32. #define SC_REJ_MP_PROT   0x00000400
  33. #define SC_OUT_SHORT_SEQ 0x00000800
  34. #define SC_IN_SHORT_SEQ  0x00004000
  35.  
  36. #define MP_END_FRAG    0x40
  37. #define MP_BEGIN_FRAG  0x80
  38.  
  39. #ifdef __KERNEL__
  40. /*
  41.  * this is an 'old friend' from ppp-comp.h under a new name 
  42.  * check the original include for more information
  43.  */
  44. struct isdn_ppp_compressor {
  45.     struct isdn_ppp_compressor *next,*prev;
  46.     int num; /* CCP compression protocol number */
  47.     void *(*comp_alloc) (unsigned char *options, int opt_len);
  48.     void (*comp_free) (void *state);
  49.     int  (*comp_init) (void *state, unsigned char *options, int opt_len,
  50.          int unit, int opthdr, int debug);
  51.     void (*comp_reset) (void *state);
  52.     int  (*compress) (void *state,struct sk_buff *in, struct sk_buff *skb_out,
  53.          int proto);
  54.     void (*comp_stat) (void *state, struct compstat *stats);
  55.     void *(*decomp_alloc) (unsigned char *options, int opt_len);
  56.     void (*decomp_free) (void *state);
  57.     int  (*decomp_init) (void *state, unsigned char *options,
  58.             int opt_len, int unit, int opthdr, int mru, int debug);
  59.     void (*decomp_reset) (void *state);
  60.     int  (*decompress) (void *state, unsigned char *ibuf, int isize, unsigned char *obuf, int osize);
  61.     void (*incomp) (void *state, unsigned char *ibuf, int icnt);
  62.     void (*decomp_stat) (void *state, struct compstat *stats);
  63. };
  64.  
  65. extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *);
  66. extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *);
  67.  
  68. #endif /* __KERNEL__ */
  69.  
  70. #endif /* _LINUX_ISDN_PPP_H */
  71.  
  72.